package me.ywd.config.client.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * Copy from shopping to test Spring Cloud Config.
 * @Author
 * @Date 08/30/2017
 *
 * Customized properties test.
 * @Author
 * @Date 12/22/2016
 *
 * Test to move urls to customized shopping.
 * @Author
 * @Date 01/13/2017
 */
@Getter
@Setter
@Component
@ConfigurationProperties("config.properties")
public class ConfigProperties {
    private String simpleProp;
    private String[] arrayProps;
    private List<Map<String, String>> listProp1 = new ArrayList<>(); //接收prop1里面的属性值
    private List<String> listProp2 = new ArrayList<>(); //接收prop2里面的属性值
    private Map<String, String> mapProps = new HashMap<>(); //接收prop1里面的属性值
}
